//
//  main.m
//  Shape-Object
//
//  Created by quentin on 15/8/20.
//  Copyright (c) 2015年 QuentinLabs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Circle.h"

void drawShapes(id shapes[], int count){
    for(int i = 0;i < count;i++){
        id shape = shapes[i];
        [shape draw];
    }
}


int main(int argc, const char * argv[]) {

    id shapes[1];
    
    ShapeRect rect0 = {0,0,10,10};
    shapes[0] = [Circle new];
    [shapes[0] setBounds:rect0];
    [shapes[0] setFillColor:KRedColor];
    
    drawShapes(shapes,1);
    return 0;
}
